﻿/*-------------------------------------------------------------------------
* 命名空间: XrayDirection.Common/ConstantManager
* 类       名: ConstantManager
* 功      能:  TD
* 时      间:  2024/1/2 17:39:45
* 版      本:  V1.0
* 作      者:  Fioman
* 格      言:  Talk is cheap,show me the code ^_^
*-------------------------------------------------------------------------*/
using System;
using System.Collections.Generic;

namespace XrayDirection.Common
{
    public static class ConstantManager
    {
        /// <summary>
        /// 主界面的区域名称
        /// </summary>
        public static string MainViewRegion = "MainViewRegion";
        /// <summary>

        public static Dictionary<DayOfWeek, string> WeekChineseMap = new Dictionary<DayOfWeek, string>()
        {
            { DayOfWeek.Monday,"星期一"},
            { DayOfWeek.Tuesday,"星期二"},
            { DayOfWeek.Wednesday,"星期三"},
            { DayOfWeek.Thursday,"星期四"},
            { DayOfWeek.Friday,"星期五"},
            { DayOfWeek.Saturday,"星期六"},
            { DayOfWeek.Sunday,"星期天"},
        };

        public static string DatabaseAddError = "数据库添加失败,context.SaveChanges() 返回值影响行数为0,添加操作出现异常!";

        public static string DatabaseUpdateError = "数据库更新失败,context.SaveChanges() 返回影响行数为0, 更新操作出现异常!";

        // 一些目录的管理,工具中保存的图片的目录
        public static string ToolDirXray01 = @"D:\raw\ToolImages\Xray01";
        public static string ToolDirXray02 = @"D:\raw\ToolImages\Xray02";

        // 存放找板边的根目录,后面跟工单名称
        public static string FindEdgeRoot = @"D:\raw\FindEdge";
        // 存放找靶标的根目录,后面跟工单名称
        public static string FindTargetRoot = @"D:\raw\FindTarget";


        public static string FindEdgeDir = string.Empty;
        // 找板边Ok目录
        public static string FindEdgeDirOk = string.Empty;
        // 找板边Fail目录
        public static string FindEdgeDirFail = string.Empty;
        // 找板边结果目录
        public static string FindEdgeDirRes = string.Empty;


        // 找靶标的目录
        public static string FindTargetDir = string.Empty;
        public static string FindTargetDirOk = string.Empty;
        public static string FindTargetDirFail = string.Empty;
        public static string FindTargetDirRes = string.Empty;


        // 模板匹配加载模板的目录
        public static string TemplateOriginalDir = @"D:\Template\Original";
        // Xray01模板目录
        public static string TemplateDir01 = @"D:\Template\Template01";
        // Xray02模板目录
        public static string TemplateDir02 = @"D:\Template\Template02";
    }
}
